package com.briup.day05;

public class Test_Function {
    public static void main(String[] args) {

        int max = getMax(10, 20);//.var自动生成变量
        System.out.println(max);
        System.out.println("--------------------");
        int x=30;
        int y=40;
        max=getMax(x,y);
        System.out.println(max);
    }
    public static int getMax(int a, int b) {
        int max = a>b?a:b;
        return max;
    }
}
